package com.bjpowernode.other.atomic;

import java.math.BigDecimal;

public class MoneyTest {
    public static void main(String[] args) {
        //构建抢红包的任务
        Money money = new Money(new BigDecimal("10"));

        for (int i = 0; i < 10 ; i++) {
            new Thread( money).start();
        }
    }
}
